<?php namespace Home\Controller;
use Hdphp\Controller\Controller;

class ContentController extends Controller{
	
	public function index(){
		$aid = Q('get.aid',0,'intval');
		$data = Db::table('article')
				->join('article_data','aid','=','article_aid')
				->join('category','category_cid','=','cid')
				->where("aid={$aid}")
				->get();
		
		$tagModel = new \Common\Model\Tag;
		$data = $tagModel->getTag($data);
		View::with('data',$data[0]);
		
		View::make();
	}
}






 ?>